﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Wicresoft.UnifyShow.Business
{
    public interface IItsmEventType
    {
        List<EventTypeModel> GetAllEvent();
        EventTypeModel GetEventByName(string tier2, string tier3);
        EventTypeModel GetEventByID(string id);
        int Add(EventTypeModel model);
        void Delete(string ID);
        int Update(EventTypeModel model);
        bool GetExistEvent(string tier2, string tier3);

        /// <summary>
        ///  今日新增工单
        /// </summary>
        /// <param name="company"></param>
        /// <param name="total"></param>
        /// <param name="page"></param>
        /// <param name="rows"></param>
        /// <param name="sort"></param>
        /// <param name="order"></param>
        /// <returns></returns>
        List<ToDoModel> GetWorkOrderCreateInToday(string company, out decimal total, int page, int rows, string sort = "SubmitDate", string order = "Descending");

        /// <summary>
        /// 今日之前未关闭工单
        /// </summary>
        /// <param name="company"></param>
        /// <param name="total"></param>
        /// <param name="page"></param>
        /// <param name="rows"></param>
        /// <param name="sort"></param>
        /// <param name="order"></param>
        /// <returns></returns>
        List<ToDoModel> GetNotClosedWorkOrderBeforeToday(string company, out decimal total, int page, int rows, string sort = "SubmitDate", string order = "Descending");
        
    }
}
